<?php
declare (strict_types = 1);

namespace app\third\model;

use think\Model;

/**
 * @mixin Model
 */
class ThirdBind extends Model
{
    //
    public function setContextAttr($value, $data)
    {
        return $value ? json_encode($value, JSON_UNESCAPED_UNICODE) : '[]';
    }

    public function getContextAttr($value, $data)
    {
        return $value ? json_decode($value, true) : [];
    }
}
